import http from '@/service/http'
import type * as T from '@/types/api/index'
const homeApi: T.IHomeApi = {
  banner() {
    return http.post('/home/swiperList')
  },
  today() {
    return http.post('/PhotoPc/todayList')
  },
  user() {
    return http.post('/PhotoPc/horUser')
  },
  userList(data) {
    return http.post('/PhotoPc/userList', data)
  },
  institutionUser(data: any) {
    return http.post('/PhotoPc/institutionUser', data)
  },
  institution() {
    return http.post('/PhotoPc/pcInstitutionList')
  },
  hor() {
    return http.post('/PhotoPc/horList')
  },
  list(data) {
    return http.post('/PhotoPc/list', data)
  },
  selected(data) {
    return http.post('/PhotoPc/selectedList', data)
  },
  tabs() {
    return http.post('/PhotoPc/tabList')
  },
  tags() {
    return http.post('/PhotoPc/tags')
  },
  horKeyword() {
    return http.post('/PhotoPc/searchList')
  },
  collList(data) {
    return http.post('/PhotoPc/collList', data)
  },
  fans(data) {
    return http.post('/UserFollow/fans', data)
  },
  follow(data) {
    return http.post('/UserFollow/followList', data)
  }
}

export default homeApi
